package com.tiyunge.system.mapper;

import java.util.List;
import com.tiyunge.system.domain.SysKnowledge;
import org.apache.ibatis.annotations.Mapper;

/**
 * 知识看点Mapper接口
 * 
 * @author yejiayu
 *
 */
@Mapper
public interface SysKnowledgeMapper 
{
    /**
     * 查询知识看点
     * 
     * @param knowledgeId 知识看点主键
     * @return 知识看点
     */
    public SysKnowledge selectSysKnowledgeByKnowledgeId(Long knowledgeId);

    /**
     * 查询知识看点列表
     * 
     * @param sysKnowledge 知识看点
     * @return 知识看点集合
     */
    public List<SysKnowledge> selectSysKnowledgeList(SysKnowledge sysKnowledge);

    /**
     * 新增知识看点
     * 
     * @param sysKnowledge 知识看点
     * @return 结果
     */
    public int insertSysKnowledge(SysKnowledge sysKnowledge);

    /**
     * 修改知识看点
     * 
     * @param sysKnowledge 知识看点
     * @return 结果
     */
    public int updateSysKnowledge(SysKnowledge sysKnowledge);

    /**
     * 删除知识看点
     * 
     * @param knowledgeId 知识看点主键
     * @return 结果
     */
    public int deleteSysKnowledgeByKnowledgeId(Long knowledgeId);

    /**
     * 批量删除知识看点
     * 
     * @param knowledgeIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteSysKnowledgeByKnowledgeIds(Long[] knowledgeIds);
}
